package com.entmanage.base.oa.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.entmanage.common.annotation.Excel;
import com.entmanage.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 加班申请对象 oa_overtime_apply
 *
 * @author lsq
 * @date 2025-09-26
 */
@ApiModel(value = "OaOvertimeApply", description = "加班申请对象")
public class OaOvertimeApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /** 加班事由 */
    @Excel(name = "加班事由")
    @ApiModelProperty(value = "加班事由")
    private String reason;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    /** 加班时长（小时） */
    @Excel(name = "加班时长", readConverterExp = "小=时")
    @ApiModelProperty(value = "加班时长（小时）")
    private BigDecimal duration;

    /** 审批人ID列表，英文逗号分隔 */
    @Excel(name = "审批人ID列表，英文逗号分隔")
    @ApiModelProperty(value = "审批人ID列表，英文逗号分隔")
    private String approverIds;

    /** 审批人姓名列表，对应ID顺序 */
    @Excel(name = "审批人姓名列表，对应ID顺序")
    @ApiModelProperty(value = "审批人姓名列表，对应ID顺序")
    private String approverNames;

    /** 抄送人ID列表，英文逗号分隔 */
    @Excel(name = "抄送人ID列表，英文逗号分隔")
    @ApiModelProperty(value = "抄送人ID列表，英文逗号分隔")
    private String ccIds;

    /** 抄送人姓名列表 */
    @Excel(name = "抄送人姓名列表")
    @ApiModelProperty(value = "抄送人姓名列表")
    private String ccNames;

    /** 状态：待审批/已通过/已拒绝/已取消 */
    @Excel(name = "状态：待审批/已通过/已拒绝/已取消")
    @ApiModelProperty(value = "状态：待审批/已通过/已拒绝/已取消")
    private String status;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请时间")
    private Date applyTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    /** 申请人ID */
    @Excel(name = "申请人ID")
    @ApiModelProperty(value = "申请人ID")
    private Long userId;

    /** 申请人部门ID */
    @Excel(name = "申请人部门ID")
    @ApiModelProperty(value = "申请人部门ID")
    private Long deptId;

    /** 删除标记：0-正常，1-删除 */
    @ApiModelProperty(value = "删除标记：0-正常，1-删除")
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setDuration(BigDecimal duration)
    {
        this.duration = duration;
    }

    public BigDecimal getDuration()
    {
        return duration;
    }
    public void setApproverIds(String approverIds)
    {
        this.approverIds = approverIds;
    }

    public String getApproverIds()
    {
        return approverIds;
    }
    public void setApproverNames(String approverNames)
    {
        this.approverNames = approverNames;
    }

    public String getApproverNames()
    {
        return approverNames;
    }
    public void setCcIds(String ccIds)
    {
        this.ccIds = ccIds;
    }

    public String getCcIds()
    {
        return ccIds;
    }
    public void setCcNames(String ccNames)
    {
        this.ccNames = ccNames;
    }

    public String getCcNames()
    {
        return ccNames;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reason", getReason())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("duration", getDuration())
            .append("approverIds", getApproverIds())
            .append("approverNames", getApproverNames())
            .append("ccIds", getCcIds())
            .append("ccNames", getCcNames())
            .append("status", getStatus())
            .append("applyTime", getApplyTime())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
